import { defineConfig } from 'vitepress'
// import { search as zhSearch } from './zh'

export const shared = defineConfig({
  title: 'IT-sharing',
  description: 'to sharing',

  rewrites: {
    // 'zh/:rest*': ':rest*',
  },
  srcDir: 'md/zh',
  outDir: '../../dist/html/itblog',
  // base: '/itblog/',

  appearance: {
    // selector: 'micro-app-body',
    // attribute: 'id'
  },

  lastUpdated: true,
  cleanUrls: true,
  metaChunk: true,

  themeConfig: {
    search: {
      provider: 'local'
      // provider: 'algolia',
      // options: {
      //   appId: '8J64VVRP8K',
      //   apiKey: 'a18e2f4cc5665f6602c5631fd868adfd',
      //   indexName: 'vitepress',
      //   locales: {
      //     ...zhSearch,
      //   }
      // }
    },
  }
})
